package com.tmzn.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_device_plan")
public class TDevicePlan implements Serializable {
    /** 数据idID */
    @TableId(type = IdType.AUTO)
    private Long Id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /** 预约单次 */
    private Long planType;

    /** 状态 */
    private Long status;

    /** 运行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime runTime;

    /** 重复执行日期 */
    private String repeatDays;

    /** 重复执行时间 */
    private String repeatTime;

    /** 用户ID */
    private Integer userId;

    /** 设备编号 */
    private String deviceId;

    /** ccid */
    private String ccid;

    /*预约端口*/
    private Integer port;
}
